$def with(openstax_id, analytics_attr)

<div class="cta-button-group">
  <a
      href="https://openstax.org/details/books/$openstax_id"
      title="$_('Read eBook from OpenStax')"
      class="cta-btn cta-btn--available cta-btn--read cta-btn--external cta-btn--openstax"
      target="_blank"
      $:analytics_attr('Read')
      aria-haspopup="true"
      aria-controls="openstax-toast"
  >$_('Read')</a>
</div>

$if render_once('openstax-toast'):
  <div class="toast toast--book-provider" data-toast-trigger=".cta-btn--openstax" id="openstax-toast" style="display:none">
    <div class="toast__body">
      $:_('This book is available from <a href="https://www.openstax.org/">OpenStax</a>. OpenStax is a trusted book provider and a 501(c)(3) nonprofit charitable corporation dedicated to providing free high-quality, peer-reviewed, openly licensed textbooks online.')
      <a href="https://www.openstax.org/about/">$_("Learn more")</a>
    </div>
    <a class="toast__close">&times;<span class="shift">$_("Close")</span></a>
  </div>
